<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试增加商品</title>

<script src="${pageContext.request.contextPath}/ckeditor/ckeditor.js"></script>
</head>
<div style="width: 719px; height: 489px;" id="content">
	<div style="height: 30px;" id="pronav">
		<p>商品管理&gt;增加商品</p>
		<p></p>
	</div>
	<div style="width: 719px;" id="prolist">
		<form action="/CultureSalon/goodsupdate.do
" method="post">
			<input type="hidden" name="id" id="id" value="${goods.id}">
			<table width="690" border="0" align="center">
				<tr>
					<td width="230">商品编号:<input type="text" name="goodsNumber"
						id="goodsNumber" value="${goods.goodsNumber}"></td>
					<td width="230">商品名称:<input type="text" name="goodsName"
						id="goodsName" value="${goods.goodsName}"></td>
					<td width="230">品牌名称:<input type="text" name="brandName"
						id="brandName" value="${goods.brandName }"></td>
				</tr>
				<tr>
					<td>标签:<input type="text" name="goodsTag" id="goodsTag"
						value="${goods.goodsTag }"></td>
					<td>库存: <input type="text" name="goodsInventory"
						id="goodsInventory" value="${goods.goodsInventory }"></td>
					<td>上架时间:<input type="text" name="shelfDate" id="shelfDate"class="Wdate" onClick="WdatePicker()"
						value="${goods.shelfDate }"></td>
				</tr>

				<tr>

					<td>更新时间:<input type="text" name="updateDate" id="updateDate"class="Wdate" onClick="WdatePicker()"
						value="${goods.updateDate }"></td>
					<td>库存预警: <input type="text" name="inventoryWarn"
						id="inventoryWarn" value="${goods.inventoryWarn }"></td>
					<td>推荐：<select id="recommend" name="recommend" pattern="int">
							<option value="0">true</option>

							<option value="1">false</option>

					</select></td>
				</tr>
				<tr>

					<td>商品属性:<input type="text" name="goodsNature"
						id="goodsNature" value="${goods.goodsNature }"></td>
					<td>商场价格:<input type="text" name="retailPrice"
						id="retailPrice" value="${goods.retailPrice }"></td>
					<td>市场价格:<input type="text" name="marketPrice"
						id="marketPrice" value="${goods.marketPrice }"></td>
				</tr>

				<tr>
					<td>图片地址: <input type="text" name="goodsPictureUrl"
						id="goodsPictureUrl" value="${goods.goodsPictureUrl }"></td>
					<td>点击量:<input type="text" name="click" id="click"
						value="${goods.click }"></td>
					<td>分类:<select id="categoryId"  name="categoryId"   pattern="int" >
        <option value="0">==请选择分类==</option>
        <c:forEach items="${requestScope.categories }" var="category">
          <option value="${category.id }">${category.categoryName }</option>
          </c:forEach>
        </select>
					</td>
				</tr>
				<tr>
					<td colspan="3"><textarea class="ckeditor" cols="80"
							id="goodsDesc" name="goodsDesc" rows="3">${goods.goodsDesc}</textarea>
					</td>
				</tr>
				<tr>
					<td><input type="submit" name="submit " id="submit"
						value="提交 "></td>
					<td><input type="reset" name="reset " id="reset" value="重置 ">
					</td>
					<td></td>
				</tr>
			</table>

		</form>
	</div>
</div>

